/***************************************************
Class: Light
Includes: stdafx.h
Editors: Gindi
Existing Issues: None
Description: Initializes and allows the manipulation of the world light.
***************************************************/
#include "stdafx.h"

class Light {
public:
	Light();
	void Initialize(D3DLIGHTTYPE lightType, float range);
	void setPosAbs(float x, float y, float z);
	void setDirAbs(float x, float y, float z);
	void setDirRel(float x, float y, float z);
	void setDifAbs(float r, float g, float b);
	void setDifRel(float r, float g, float b);
	void setSpeAbs(float r, float g, float b);
	void setSpeRel(float r, float g, float b);
	void setAmbAbs(float r, float g, float b);
	void setAmbRel(float r, float g, float b);
	void setAtt(float zero, float one, float two);
	void setLight(LPDIRECT3DDEVICE9 pDevice, int num);
	void enableLight(LPDIRECT3DDEVICE9 pDevice, bool status);

	bool getStatus();
	D3DLIGHT9* getLight();
	D3DXVECTOR3* getLightDir();
	//D3DXVECTOR3* getPos() { &m_light.Position; }

private:
	D3DLIGHT9			m_light;
	D3DXVECTOR3			m_lightDir;
	int					m_num;
	bool				m_status;
};